import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;

public class JFrame学习 {

	public static void main(String[] args) {
		JFrame jf = new JFrame();
		jf.setBounds(200, 200, 300, 250);
		jf.setLayout(null);
		jf.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		JLabel namelb = new JLabel("学历：");
		namelb.setBounds(10, 50, 60, 25);
		jf.add(namelb);
		JComboBox seibox = new JComboBox();
		seibox.setBounds(80, 50, 80, 25);
		seibox.addItem("文盲");
		seibox.addItem("小学");
		seibox.addItem("初中");
		seibox.addItem("高中");
		seibox.addItem("大学");
		jf.add(seibox);
		
		jf.setVisible(true);
	}

}